﻿using System;
using SDF.Web.Models;

namespace SDF.Web
{
    public partial class exam_add : SDF.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        //添加
        protected void btnSave_Click(object sender, EventArgs e)
        {
            AuthRule model = new AuthRule();
            model.Title = txtTitle.Text;
            model.Status = int.Parse(ddlStatus.SelectedValue);

            var id = model.Insert();

            lblMsg.Text = "提交完成" + id + db.LastSQL + "<br />" + db.LastCommand + "<br />" + db.LastArgs;
        }
    }
}